home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.08 Aug 96 / Shared Libes CPX / Example Libraries / C Lib Example / Source / test_main.c < prev   
Encoding:
C/C++ Source or Header  |  1995-06-28  |  367 b   |  22 lines  |  [TEXT/MPCC]

  1. #include "TanLib01.h"
  2. #include <stdio.h>
  3. void main()
  4. {
  5.     data_cache *test_cache;
  6.     double test_data[10] = {1.5,
  7.                             2.3,
  8.                             1.1,
  9.                             14.6,
  10.                             -7.0,
  11.                             -.0034,
  12.                             34.9,
  13.                             9087.001,
  14.                             4.3,
  15.                             1.00};
  16.     test_cache->data = test_data;
  17.     test_cache->length = 10;
  18.     get_average(test_cache);
  19.     printf("The result = %d", test_cache->result);
  20. }
  21.     
  22.